﻿<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <!--[if lt IE 9]>
    <script src="https://cdn.bootcss.com/html5shiv/3.7.3/html5shiv.min.js"></script>
    <script src="https://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
    <title>用户注册</title>
    <!-- 引入bootstrap样式表文件-->
    <link rel="stylesheet"  href="/plugin/bootstrap/3.3.5/css/bootstrap.min.css">
</head>
<body>
<div class="container">
    <div class="row clearfix">
        <div class="col-md-12 column">
            <div class="page-header">
                <h1>
                    B2C网上商城
                    <small><a href="/index.jsp">首页</a> > 用户注册</small>
                </h1>
            </div>
        </div>
    </div>
    <div class="row clearfix">
        <div class="col-md-12 column">
            <!-- 单击"注 册"按钮，将请求提交到：form标签的 action属性指定的地址 -->
            <form class="form-horizontal" role="form"
                  action="/user/userRegister.do" id="regform" method="post">
                <div class="form-group">
                    <label for="name" class="col-sm-4 control-label">姓名</label>
                    <div class="col-sm-4">
                        <input type="text" class="form-control" id="name" name="name"
                               placeholder="姓名必填,最长15个汉字" maxlength="15" required autofocus/>
                    </div>
                </div>
                <div class="form-group">
                    <label for="password" class="col-sm-4 control-label">密码</label>
                    <div class="col-sm-4">
                        <input type="password" class="form-control" id="password"
                               name="password" placeholder="密码必填，至少6位" maxlength="16" required
                               autofocus/> <span id="ttmsg" style="color: red"></span>
                    </div>
                </div>
                <div class="form-group">
                    <label for="email" class="col-sm-4 control-label">邮箱</label>
                    <div class="col-sm-4">
                        <input type="email" class="form-control" id="email" name="email"
                               placeholder="邮箱必填" maxlength="30" required autofocus/> <img
                            id="ajaximg" src="/img/ajax-loader.gif" alt="正在请求..."
                            style="display: none"/><span id="tpmsg" style="color: red"></span>
                    </div>
                </div>
                <div class="form-group">
                    <label for="cellphone" class="col-sm-4 control-label">移动电话</label>
                    <div class="col-sm-4">
                        <input type="text" class="form-control" id="cellphone"
                               name="cellphone" maxlength="11" placeholder="手机号必填" required autofocus/>
                        <img id="ajaximg1" src="/img/ajax-loader.gif" alt="正在请求..."
                             style="display: none"/><span id="tcmsg" style="color: red"></span>
                    </div>
                </div>
                <div class="form-group">
                    <label for="c1" class="col-sm-4 control-label">验证码</label>
                    <div class="col-sm-8">
                        <div id="c1"></div>
                        <input type="hidden" name="token" id="token">
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-sm-4"></div>
                    <div class="col-sm-8">
                        <button type="submit" class="btn btn-primary">注 册</button>
                        &nbsp;&nbsp;
                        <button type="reset" class="btn btn-default">重 置</button>
                        &nbsp;<font color="green">已注册从这里，</font><a
                            href="/web/login.html">登 录</a>
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-sm-4 "></div>
                    <div class="col-sm-8">
                        <font color="red" id="regmsg"></font>
                        <font color="green"></font>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
<!-- 引入jQuery javascript脚本 -->
<script src="/plugin/jquery/1.11.3/jquery.min.js"></script>
<!-- 引入bootstrap javascript脚本 -->
<script src="/plugin/bootstrap/3.3.5/js/bootstrap.min.js"></script>
<!-- 引入顶象验证脚本 -->
<script type="text/javascript" src="https://cdn.dingxiang-inc.com/ctu-group/captcha-ui/index.js"></script>
<!-- 引入业务js -->
<script src="/js/register.js"></script>
</body>
</html>